package core.database.repositories.generics;

import java.util.ArrayList;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.NoRepositoryBean;

import core.database.NodeType;

@NoRepositoryBean
public interface GenericNodeRepository<N> extends JpaRepository<N, Long> {
	N findByNodeType(NodeType nodeType);
	public List<N> findAllByNodeType(NodeType nodeType);
	ArrayList<N> findByLevel(int level);
	N findByName(String name);
	N findByIpAndPort(String ip, String port);
}
